<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>App2</h1>
    <p></p>
    <button id="btn"></button>
    <script>
        document.getElementById('btn').onclick = function(){
            document.getElementsByTagName('p')[0].innerHTML = localStorage.getItem('pawd')
        }
    </script>
</body>
</html>